package com.xiaoyilin.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
public class TopicQueueConsumer {

    @RabbitListener(queues = "my.topic.queue")
    public void listenerTopicQueue(String str) {
        System.out.println("Listener Topic Queue:" + str);
    }

    @RabbitListener(queues = "my.topic.queues")
    public void listenerTopicQueues(String str) {
        System.err.println("Listener Topic Queues:" + str);
    }


}
